package com.xu.cloud.common.trace;

import org.springframework.lang.NonNull;

/**
 * TraceId获取器
 *
 * @author xuguan
 * @since 2025/1/8
 */
public class TraceIdHelper {

    @NonNull
    public static String getTraceId() {
        return TraceIdContextHolder.getOrSetTraceIdContext().getTraceId();
    }
}
